package com.fengwk.user.face.client.hystrix;

import org.springframework.stereotype.Component;

import com.fengwk.support.exception.BaseException;
import com.fengwk.user.face.client.RandomClient;

@Component
public class RandomClientHystrix implements RandomClient {

	@Override
	public String usernameRandom(String username) {
		throw new BaseException("获取用户名随机码异常");
	}

	@Override
	public boolean mobilePhoneRandom(String mobilePhone) {
		throw new BaseException("发送手机随机码异常");
	}

	@Override
	public boolean emailRandom(String email) {
		throw new BaseException("发送邮箱随机码异常");
	}

	@Override
	public boolean checkRandom(String identity, String random) {
		throw new BaseException("随机码检验异常");
	}
	
}
